home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Alles Voor Internet / Tout Pour Internet
/
alles voor internet.iso
/
MacInternet™
/
Telnet
/
NCSA
/
tn3270 2.3d26 source
/
tn3270
/
ala.kbmap
< prev
next >
Wrap
Text File
|
1991-01-21
|
14KB
|
507 lines
#
# tn3270 for the Macintosh Source Code
# Brown University Computing and Information Services
# Version 2.3d21, January 17, 1991
# Copyright (c) 1988, 1989, 1990, 1991 by Brown University and by
# Peter John DiCamillo.
#
# Permission is granted to any individual or institution to use, copy,
# or redistribute the binary version of this software and its
# documentation provided this notice and the copyright notices are
# retained. Permission is granted to any individual or non-profit
# institution to use, copy, modify, or redistribute the source files
# of this software provided this notice and the copyright notices are
# retained. This software may not be distributed for profit, either
# in original form or in derivative works, nor can the source be
# distributed to other than an individual or a non-profit institution.
# Any individual or group interested in seeing and/or using these
# source files but who are prevented from doing so by the above
# constraints should contact Don Wolfe, Assistant Vice-President for
# Computer Systems at Brown University, (401) 863-7250, for possible
# software licensing of the source developed at Brown.
#
# Brown University and Peter John DiCamillo make no representations
# about the suitability of this software for any purpose.
#
# BROWN UNIVERSITY AND PETER JOHN DICAMILLO GIVE NO WARRANTY, EITHER
# EXPRESS OR IMPLIED, FOR THE PROGRAM AND/OR DOCUMENTATION PROVIDED,
# INCLUDING, WITHOUT LIMITATION, WARRANTY OF MERCHANTABILITY AND
# WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE.
#
#
# tn3270 keycode mapping definition
#
# General syntax rules:
# Case is ignored except in the name of the key mapping, and in character
# literals, e.g. 'a'.
#
# Blank lines, white space, and any text following "#" on a line is ignored.
#
# The three types of definition lines are the mapping name definition, the
# mapping number definition, and the key mapping definition:
#
# To name this mapping:
# name: {mapping name}
# Underscores in the name are replaced by blanks. Use two consecutive
# underscores to include an underscore in the name.
#
# To assign a resource number for this mapping:
# number: {resource number}
# This number is only used when the resource is written out in "Rez"
# file format.
#
# To map a function to a key sequence:
# function = [modifier] {'literal' | "hexcode" | "Khexcode"}
#
# Function names are listed below. Following each name enclosed in
# parenthesis is the EBCDIC hex code the name maps to.
# Punctuation Marks:
# space (40) cent (4A) period (4B) less (4C)
# lparen (4D) plus (4E) or (4F) ampersand (50)
# exclaim (5A) dollar (5B) asterisk (5C) rparen (5D)
# semi (5E) not (5F) minus (60) slash (61)
# vertical (6A) comma (6B) percent (6C) underscore (6D)
# greater (6E) question (6F) accent (79) colon (7A)
# pound (7B) at (7C) apostrophe (7D) equal (7E)
# dblquote (7F) tilde (A1) lbrack (AD) rbrack (BD)
# lbrace (C0) rbrace (D0)
# Lowercase Letters:
# lca through lci (81 through 89)
# lcj through lcr (91 through 99)
# lcs through lcz (A2 through A9)
# Uppercase Letters:
# a through i (C1 through C9)
# j through r (D1 through D9)
# s through z (E2 through E9)
# Digits:
# 0 through 9 (F0 through F9)
# APL Characters: (hex codes given are preceded by Graphics Escape)
# Note: APL mode must be in effect for these characters to be generated.
# a_ through i_ (41 through 49) (underscored uppercase letters)
# j_ through r_ (51 through 59)
# s_ through z_ (62 through 69)
# i-beam (DA) del-tilde (FB) grade-down (DC)
# grade-up (DD) vert-rotate (CD) transpose (CF)
# hor-rotate (ED) logarithm (FD) nor (CB)
# nand (CA) apl-exclaim (DB) domino (EE)
# quote-quad (DE) delta_ (FC) format (FE)
# execute (EF) lamp (DF) expand (EB)
# compress (EA)
# ALA Characters (for use the built-in ALA font)
# left_tack (2A) pointer (38) paragraph (39)
# single_dagger (3A) double_dagger(3B) polish_l (41)
# slash_o (42) d_crossed (43) thorn (44)
# ae (45) oe (46) hook_o (47)
# hook_u (48) maigkiy_znak (49) lcpolish_l (51)
# lcslash_o (52) lcd_crossed (53) lcthorn (54)
# lcae (55) lcoe (56) lchook_o (57)
# lchook_u (58) tverdyi_znak (59) ayn (62)
# alf (63) middle_dot (64) turkish_i (65)
# flat (66) patent (67) eth (68)
# plus_or_minus (69) sub0 (70) through sub8 (78)
# script_l (80) angstrom (8A) superior_dot (8B)
# umlaut (8C) candrabindu (8D) left_ligature (8E)
# left_d_tilde (8F) sub9 (90) grave (9A)
# acute (9B) ala_circumflex (9C) hacek (9D)
# right_ligature (9E) right_d_tilde (9F) ala_dagger(A0)
# sub_plus (AA) sub_lparen (AB) pincushion (AC)
# sub_minus (AE) sub_rparen (AF)
# sup0 (B0) through sup9 (B9) sup_plus (BA)
# sup_lparen (BB) asper (BC) sup_minus (BE)
# sup_rparen (BF) circle_below (CA) dot_below (CB)
# double_dot_below (CC) breve (CD) ala_tilde (CE)
# pseudo_quest (CF) cedilla (DA) high_comma_ctr (DB)
# right_hook (DC) upadhmaniya (DD) macron (DE)
# double_acute (DF) british_pound (E2) right_cedilla (EA)
# high_comma (EB) left_hook (EC) ala_underscore (ED)
# double_underscore (EE) ala_alpha (FA) ala_beta (FB)
# ala_gamma (FC) yen (FD) peso (FE)
# Attention Keys: (hex codes are the AID codes transmitted)
# pf1 through pf9 (F1 through F9)
# pf10 through pf12 (7A through 7C)
# pf13 through pf21 (C1 through C9)
# pf22 through pf24 (4A through 4C)
# enter (7D) pa1 (6C) pa2 (6E) pa3 (6B)
# clear (6D) treq (F0) cursel (7E)
# Cursor Movement:
# up down left right tab
# backtab newline home up*2 down*2
# left*2 right*2
# Editing:
# erase-eof erase-input delete-char insert-char
# dup field-mark rub-out
# Program Control:
# insert-mode (toggle insert mode)
# apl-mode (toggle keyboard APL mode)
# cursor-pos (toggle cursor position display)
# reset (unlock keyboard)
# prog-reset (reset program; resets above modes and I/O)
#
# Modifier is: normal, shift, command, command-shift, or option.
# If the user presses more than one modifier key, the precedence of the
# modifiers is: command-shift, command, option, and shift. It is not
# possible to specify mapping for other combinations, such as command-option.
# For ASCII key mappings, when "modifier" is omitted, the mapping applies
# to both "normal" and "shift". For keycode mappings, the default modifier
# is "normal", i.e. no modifiers.
#
# 'literal' specifies a mapping to the ASCII code defined by the character
# literal.
#
# "hexcode" specifies a mapping to the ASCII code given in hex. It must
# consist of exactly two hex digits.
#
# "Khexcode" specifies a keycode mapping to the code given in hex. It must
# consist of exactly two hex digits.
# If a keycode mapping is defined for a key, it takes precedence over an
# ASCII code mapping for it.
# Keycode mapping use the raw key codes provided by the Macintosh operating
# system for a key press event. They are hardware dependent, and should only
# be used when keys which must be distinguished return the same ASCII codes.
# For keycode values see "The Toolbox Event Manager" chapter in volumes 1 and
# 5 of "Inside Macintosh".
#
# tn3270 default mapping:
#
name: ala
number: 130
# charcter mappings
space = "20" # spaces are ignored in literals too
cent = option "d2" # option [
period = '.'
less = '<'
lparen = '('
plus = '+'
or = '|'
ampersand = '&'
exclaim = '!'
dollar = '$'
asterisk = '*'
rparen = ')'
semi = ';'
not = '^'
minus = '-'
slash = '/'
vertical = option '`'
comma = ','
percent = '%'
underscore = '_'
greater = '>'
question = '?'
accent = '`'
colon = ':'
pound = "23" # can't use comment delimiter in a literal!
at = '@'
apostrophe = '''
equal = '='
dblquote = '"'
lca = 'a'
lcb = 'b'
lcc = 'c'
lcd = 'd'
lce = 'e'
lcf = 'f'
lcg = 'g'
lch = 'h'
lci = 'i'
lcj = 'j'
lck = 'k'
lcl = 'l'
lcm = 'm'
lcn = 'n'
lco = 'o'
lcp = 'p'
lcq = 'q'
lcr = 'r'
lcs = 's'
lct = 't'
lcu = 'u'
lcv = 'v'
lcw = 'w'
lcx = 'x'
lcy = 'y'
lcz = 'z'
tilde = '~'
lbrack = '['
rbrack = ']'
lbrace = '{'
rbrace = '}'
a = 'A'
b = 'B'
c = 'C'
d = 'D'
e = 'E'
f = 'F'
g = 'G'
h = 'H'
i = 'I'
j = 'J'
k = 'K'
l = 'L'
m = 'M'
n = 'N'
o = 'O'
p = 'P'
q = 'Q'
r = 'R'
s = 'S'
t = 'T'
u = 'U'
v = 'V'
w = 'W'
x = 'X'
y = 'Y'
z = 'Z'
backslash = '\'
0 = '0'
1 = '1'
2 = '2'
3 = '3'
4 = '4'
5 = '5'
6 = '6'
7 = '7'
8 = '8'
9 = '9'
sub1 = command '1'
sub2 = command '2'
sub3 = command '3'
sub4 = command '4'
sub5 = command '5'
sub6 = command '6'
sub7 = command '7'
sub8 = command '8'
sub9 = command '9'
sub0 = command '0'
sub_minus = command '-'
sub_plus = command '='
sup1 = option "K12"
sup1 = command-shift '1'
sup2 = option "K13"
sup2 = command-shift '2'
sup3 = option "K14"
sup3 = command-shift '3'
sup4 = option "K15"
sup4 = command-shift '4'
sup5 = option "K17"
sup5 = command-shift '5'
sup6 = option "K16"
sup6 = command-shift '6'
sup7 = option "K1a"
sup7 = command-shift '7'
sup8 = option "K1c"
sup8 = command-shift '8'
sup9 = option "K19"
sup9 = command-shift '9'
sup0 = option "K1d"
sup0 = command-shift '0'
sup_minus = option "K1b"
sup_minus = command-shift '-'
sup_plus = option "K18"
sup_plus = command-shift '='
ae = command-shift 'q'
d_crossed = command-shift 'w'
polish_l = command-shift 'e'
oe = command-shift 'r'
hook_o = command-shift 't'
slash_o = command-shift 'y'
thorn = command-shift 'u'
hook_u = command-shift 'i'
sup_lparen = command-shift '['
sup_rparen = command-shift ']'
lcae = command 'q'
lcd_crossed = command 'w'
lcpolish_l = command 'e'
lcoe = command 'r'
lchook_o = command 't'
lcslash_o = command 'y'
lcthorn = command 'u'
lchook_u = command 'i'
sub_lparen = command '['
sub_rparen = command ']'
plus_or_minus = command '\'
ala_alpha = command 'a'
turkish_i = command 's'
ayn = command 'd'
alf = command 'f'
miagkiy_znak = command 'g'
tverdyi_znak = command-shift 'g'
script_l = command 'z'
british_pound = command-shift 'z'
flat = command 'x'
patent = command-shift 'x'
ala_gamma = command 'c'
eth = command 'v'
ala_dagger = command-shift 'v'
ala_beta = command 'b'
middle_dot = command-shift 'b'
upadhmaniya = normal "1b" # keypad clear
candrabindu = shift "1b" # keypad clear
ala_underscore = normal "K51" # keypad = (ADB keypad)
double_underscore = shift "K51" # keypad = (ADB keypad)
ala_underscore = shift "K48" # keypad , (numeric/Plus keypad)
double_underscore = command-shift "K48" # keypad , (numeric/Plus keypad)
double_dot_below = "K4b" # keypad / (ADB keypad)
double_dot_below = shift "K4d" # keypad / (numeric/Plus keypad)
left_d_tilde = normal "K43" # keypad * (ADB keypad)
left_d_tilde = shift "K42" # keypad * (numeric/Plus keypad)
right_d_tilde = shift "K43" # keypad * (ADB keypad)
right_d_tilde = command-shift "K42" # keypad * (numeric/Plus keypad)
umlaut = normal "K59" # keypad 7
acute = normal "K5b" # keypad 8
double_acute = shift "K5b" # keypad 8
macron = normal "K5c" # keypad 9
breve = shift "K5c" # keypad 9
left_hook = normal "K4e" # keypad -
right_hook = shift "K4e" # keypad -
ala_circumflex = normal "K56" # keypad 4
hacek = shift "K56" # keypad 4
ala_tilde = normal "K57" # keypad 5
cedilla = normal "K58" # keypad 6
right_cedilla = shift "K58" # keypad 6
high_comma_ctr = normal "K45" # keypad + (ADB keypad)
high_comma_ctr = shift "K46" # keypad + (numeric/Plus keypad)
high_comma = shift "K45" # keypad + (ADB keypad)
high_comma = command-shift "K46" # keypad + (numeric/Plus keypad)
dot_below= normal "K53" # keypad 1
superior_dot = shift "K53" # keypad 1
grave = normal "K54" # keypad 2
circle_below = normal "K55" # keypad 3
angstrom = shift "K55" # keypad 3
left_ligature = normal "K4c" # keypad enter
right_ligature = shift "K4c" # keypad enter
pseudo_quest = normal "K41" # keypad .
enter = normal "0d"
pf1 = command "K53" # keypad 1
pf1 = "K7a" # F1
pf2 = command "K54" # keypad 2
pf2 = "K78" # F2
pf3 = command "K55" # keypad 3
pf3 = "K63" # F3
pf4 = command "K56" # keypad 4
pf4 = "K76" # F4
pf5 = command "K57" # keypad 5
pf5 = "K60" # F5
pf6 = command "K58" # keypad 6
pf6 = "K61" # F6
pf7 = command "K59" # keypad 7
pf7 = "K62" # F7
pf7 = "K74" # page up
pf8 = command "K5b" # keypad 8
pf8 = "K64" # F8
pf8 = "K79" # page down
pf9 = command "K5c" # keypad 9
pf9 = "K65" # F9
pf10 = command "K52" # keypad 0
pf10 = "K6d" # F10
pf11 = command "K41" # keypad .
pf11 = "K67" # F11
pf12 = command "K4c" # keypad enter
pf12 = "K6f" # F12
pf13 = command-shift "K53" # keypad 1
pf13 = "K69" # F13
pf13 = shift "K7a" # F1
pf14 = command-shift "K54" # keypad 2
pf14 = "K6b" # F14
pf14 = shift "K78" # F2
pf15 = command-shift "K55" # keypad 3
pf15 = "K71" # F15
pf15 = shift "K63" # F3
pf16 = command-shift "K56" # keypad 4
pf16 = shift "K76" # F4
pf17 = command-shift "K57" # keypad 5
pf17 = shift "K60" # F5
pf18 = command-shift "K58" # keypad 6
pf18 = shift "K61" # F6
pf19 = command-shift "K59" # keypad 7
pf19 = shift "K62" # F7
pf20 = command-shift "K5b" # keypad 8
pf20 = shift "K64" # F8
pf21 = command-shift "K5c" # keypad 9
pf21 = shift "K65" # F9
pf22 = command-shift "K52" # keypad 0
pf22 = shift "K6d" # F10
pf23 = command-shift "K41" # keypad .
pf23 = shift "K67" # F11
pf24 = command-shift "K4c" # keypad enter
pf24 = shift "K6f" # F12
pa1 = command ','
pa2 = command '.'
pa3 = command "03" # enter
treq = command '/'
cursel = command 'l'
up = "1e" # up arrow code
down = "1f" # down arrow code
left = "1c" # left arrow code
left = normal "08" # backspace/delete code
right = "1d" # right arrow code
tab = normal "09" # tab key
backtab = shift "09"
newline = "03" # enter key
newline = shift "0d" # return key
home = command "0d" # return key
delete-char = shift "08" # backspace/delete key
delete-char = "K75" # X (Del) key
dup = option "K02" # dup
field-mark = option "K03" # field-mark
insert-char = option "08" # backspace/delete key
rub-out = command "08" # backspace/delete key
up*2 = option "1e" # up arrow code
down*2 = option "1f" # down arrow code
left*2 = option "1c" # left arrow code
right*2 = option "1d" # right arrow code
insert-mode = "K72" # ins/help
erase-eof = "K77" # end
clear = "K73" # home key